-- GENERATED SPELL FOR [7th Legion Cleric] --


function spell0_26780(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(31739,pUnit)
pUnit:RegisterEvent('Sorts_26780', 2500, 1)
end

function spell1_26780(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(25054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26780', 2500, 1)
end

function Sorts_26780(pUnit, Event)
local choix_sorts_26780 = math.random(0, 1)
if choix_sorts_26780 == 0 then
pUnit:RegisterEvent('spell0_26780', 1, 1)
end
if choix_sorts_26780 == 1 then
pUnit:RegisterEvent('spell1_26780', 1, 1)
end
end

function mob26780_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26780', math.random(1500, 3000), 1)
end

function mob26780_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26780_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26780_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26780, 1, 'mob26780_Action')
RegisterUnitEvent(26780, 2, 'mob26780_Leave')
RegisterUnitEvent(26780, 3, 'mob26780_Kill')
RegisterUnitEvent(26780, 4, 'mob26780_Die')
